package com.stylefeng.guns.modular.netcar.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper=true)
@TableName("dispatch_psn_car")
 /**
 * 调度员可调度车辆
 *
 * @author sasazaixian
 * @Date 2018-11-15 10:29
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
public class DispatchPsnCar extends Model<DispatchPsnCar> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */
    @TableId(value = "dpc_id", type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String dpcId;     //主键
    @Override
    protected Serializable pkVal() {
        return this.dpcId;
    }
    
    //扩展能查询字段
    @TableField(exist = false) 
    private String key ;
    //开始日期
    @TableField(exist = false)     
    private String sdate;
    //截止日期 
    @TableField(exist = false) 
	private String edate;
    //排序字段
    @TableField(exist = false) 
	private String  sortField ;
	//排序	
	@TableField(exist = false) 
	private String sortOrder;

	//座位数
    @ApiModelProperty(value = "座位数")
    @TableField(exist = false)
	private Integer viMaxCount;

    @TableField(exist = false)
    private String isDispatch;

    @ApiModelProperty(value = "车辆编码")
    @TableField(exist = false)
    private String vehicleNo; //车辆编码

    @ApiModelProperty(value = "线路ID")
    @TableField("su_id")
    private String suId;     //线路ID

    @ApiModelProperty(value = "调度员名称")
    @TableField(exist = false)
    private String suName;     //调度员名称

    @ApiModelProperty(value = "车辆id")
    @TableField("vi_id")
    private String viId;     //车辆id

    @ApiModelProperty(value = "车辆Id数组")
    @TableField(exist = false)
    private String viIdArry; //车辆Id数组

    @ApiModelProperty(value = "调度员ID数组")
    @TableField(exist = false)
    private String suIdArry; //调度员ID数组

    @ApiModelProperty(value = "机构-车辆号码")
    @TableField(exist = false)
    private String vehiclePlate; //机构-车辆号码

    @ApiModelProperty(value = "车辆号码")
    @TableField(exist = false)
    private String realVehiclePlate; //车辆号码

    @ApiModelProperty(value = "创建人")
    @TableField("create_user")
    private String createUser;     //创建人

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;     //创建时间

    @ApiModelProperty(value = "备注")
    @TableField("note")
    private String note;     //备注
}
